package com.itheima.dao;
/*
* 比身高
* */
public class demo12 {
    public static void main(String[] args) {
        //1：定义三个变量用于保存和尚的身高，单位为cm，这里仅仅体现数值即可。
        int height1 = 150;
        int height2 = 210;
        int height3 = 165;

        int tempHeight = height1 > height2 ? height1 : height2;

        int mapHeight= tempHeight > height3 ? tempHeight : height3;

        System.out.println(mapHeight);
    }
}
